import React, {
	Component
} from 'react';
import {
	Link,
	Route,
	Switch
} from 'react-router-dom';

import New1 from './New1'

class New extends Component {

	componentWillMount() {
		console.log(this)
	}
	componentDidMount() {}
	componentWillReceiveProps(newProps) {}
	shouldComponentUpdate(newProps, newState) {
		return true;
	}
	componentWillUpdate(nextProps, nextState) {}
	componentDidUpdate(prevProps, prevState) {}
	componentWillUnmount() {}

	render() {
		return (
			<div>
		      	New

            <li><Link to={`${this.props.match.url}/new1`}>New1</Link></li>

		        <Switch>
      				<Route path='/new/new1' component={ New1 }/>
		        </Switch>

		    </div>
		);
	}
}


export default New;